package scut.facerecognition.entity.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Message {
    private Long messageId;//自增主键
    private String content;
    private Long senderId;  //发送者id
    private Long receiverId;  //接收者id
    private Boolean messageStatus = Boolean.FALSE;  //是否成功发送（该条消息的状态）
    private Boolean isDelivered = Boolean.FALSE;  //是否成功保存到服务端
    @JSONField(format = "yyyy-MM-dd'T'HH:mm:ss")
    private LocalDateTime createTime;
}
